﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data_Access_Layer
{
	public class WorkSession
	{
		private static WorkSession _instance = null;

		/// <summary>
		/// Lay phien lam viec hien tai
		/// </summary>
		public static WorkSession Current
		{
			get { return _instance ?? (_instance = new WorkSession()); }
		}

		/// <summary>
		/// Khoi tao doi tuong quan ly phien lam viec
		/// </summary>
		private WorkSession()
		{
            CurrentArticle= new List<Article>();
		}

		/// <summary>
		/// Lấy hàng hóa đang được sử dụng
		/// </summary>
        	public List<Article> CurrentArticle { get; set; } 
		/// <summary>
		/// Tài khoản dang su dung phan mem
		/// </summary>
		public Account CurrentAccount { get; set; }

       
		/// <summary>
		/// Thoi diem cap nhat du lieu cuoi cung
		/// </summary>
		public DateTime LastRefresh { get; set; }
	}
}
